package com.woniu.humanresource.service;

import com.woniu.humanresource.entity.Warehouse;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author xiang
* @description 针对表【warehouse】的数据库操作Service
* @createDate 2022-07-12 10:02:51
*/
public interface WarehouseService extends IService<Warehouse> {
    //获取所有资产分类分类
    List<Warehouse> getAllWarehouse();
    //添加根节点
    void addRootNodeWarehouse(String newWarehouseName,String newWarehouseNum,String newWarehouseAddress,String newWarehouseRemarks);
    //添加子节点仓库
    void addWarehouse(String newWarehouseName,String newWarehouseNum,String newWarehouseAddress,String newWarehouseRemarks,Warehouse warehouse);
    //删除勾选的节点
    void removeWarehousesByIds(List<Warehouse> warehouses);
    //编辑
    void editWarehouse(String newWarehouseName,String newWarehouseNum,String newWarehouseAddress,String newWarehouseRemarks,Warehouse warehouse);
}
